home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C++ / Snippets / SuperSplash 1.0d1 / sources / gVariables.h < prev    next >
C/C++ Source or Header  |  1995-10-03  |  1KB  |  41 lines

  1. #pragma once
  2. /*    
  3. *    gVariables.h
  4. *
  5. *    SuperSplash
  6. *    ^^^^^^^^^^^
  7. *
  8. *    Declaration of global variables used by application.
  9. *    Tuck them all into one struct which can then be accessed app. wide.
  10. *    Do this to cut down on global name–space polution & keep track of
  11. *    program globals (they are easy to find if they are all in one struct!)
  12. *    © Andrew Nemeth (where applicable), Warrimoo Australia 1995
  13. *
  14. *    File created:        3 Oct 95.
  15. *    Modified:            3 Oct 95.
  16. */
  17.  
  18. struct    myGlobalStruct {
  19.                     Boolean    boolDone;
  20.  
  21.                     //    Values that can be adjusted by other application code to change
  22.                     //    the behavior of the MainEventLoop.
  23.                     //
  24.                     //    Rules of thumb:
  25.                     //
  26.                     //        Increase 'xxxRunQuantum' (and decrease 'xxxSleepQuantum') when:
  27.                     //            The application has many threads running that need time
  28.                     //
  29.                     //        Decrease 'xxxRunQuantum' when:
  30.                     //            Sending AppleEvents to other applications
  31.                     //            Launching other applications
  32.                     //            Running in the background
  33.  
  34.                     unsigned long    foregroundRunQuantum,
  35.                                 foregroundSleepQuantum,
  36.                                 backgroundRunQuantum,
  37.                                 backgroundSleepQuantum;
  38.                     };
  39.  
  40. extern     struct myGlobalStruct     * gptrGlobalsRec;
  41.